package com.seagull.core.test.desing.shipeiqi;

/**
 * @author:jian.zhou
 * @DATE: 2017/10/23.
 * @Version:0.0.1
 * @Desc:
 */
public class Home {

    /**
     * 家里只有安卓数据线
     */
    private AndroidPlugFace androidPlugFace;

    public Home ( AndroidPlugFace androidPlugFace ) {
        this.androidPlugFace = androidPlugFace;
    }


    public void homeMarge (){
        androidPlugFace.power();
    }

    public static void main(String[] args) {

        //现在只有要用苹果插头充电

        Home h = new Home( new Adapter(new IosPlugFaceImpl()) );
        h.homeMarge();


    }



}
